package cn.starlightsoftware.sherly.controller.admin.auth.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;

import static io.swagger.v3.oas.annotations.media.Schema.RequiredMode.REQUIRED;

/**
 * @author 谷子毅
 * @date 2024/5/7
 */
@Data
public class LoginReqVO {

    @Schema(description = "用户名", requiredMode = REQUIRED, example = "gzy520")
    @NotBlank
    private String username;

    @Schema(description = "密码", requiredMode = REQUIRED ,example = "123456")
    @NotBlank
    private String password;

    @Schema(description = "租户代码，仅开启多租户功能时必传", requiredMode = REQUIRED, example = "sherly")
    private String tenantCode;

}
